<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
	<head>
	
		<meta charset="UTF-8">
		<title>电商管理平台</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="stylesheet" href="style/bootstrap.css" />
		<link rel="stylesheet" href="style/index.css" />
		<script type="text/javascript" src="js/jquery-3.3.1.js"></script>
		<script type="text/javascript" src="js/bootstrap.js"></script>
		<script type="text/javascript" src="js/jquery.metisMenu.js"></script>
		<script type="text/javascript" src="js/custom-scripts.js"></script>
	<style>
	
	</style>
	</head>
	<body>
			<!--导航-->
			<nav class="dh nav nav-tabs">
				<img class="logo img-circle" src="../images/logo.png" />
				<li class="dropdown pull-right">
						<a class="xlcd dropdown-toggle" data-toggle="dropdown" href="#" aria-expanded="false">
							<i class="glyphicon glyphicon-user"></i> <i class="glyphicon glyphicon-triangle-bottom"></i>
						</a>
					<ul class="dropdown-menu ">
						<li>
							 <a href="admin.jsp"target="main">我的信息</a>
						</li>
						<li>
							 <a href="#">更多设置</a>
						</li>
						<li class="divider">
						</li>
						<li>
							 <a href="#">退出登录</a>
						</li>
					</ul>
				</li>
			</nav>
		
		<!--左侧功能栏-->
			<nav class="left navbar-default navbar-side" role="navigation">
				<div class="sidebar-collapse">
					<ul class="nav" id="main-menu">
						<li>
							<a class="active-menu" href="index.jsp"><i class="glyphicon glyphicon-th"></i>工作台</a>
						</li>
						<li>
							<a href="#"><i class="glyphicon glyphicon-lamp"></i>商品管理<span class="glyphicon glyphicon-chevron-left"></span></a>
							<ul class="nav nav-second-level">
								<li>
									<a href="kinds.jsp" target="main">分类管理</a>
								</li>
								<li>
									<a href="../goodsServlet" target="main">商品管理</a>
								</li>
							</ul>
						</li>

						<li>
							<a href="#"><i class="glyphicon glyphicon-shopping-cart"></i>订单管理<span class="glyphicon glyphicon-chevron-left"></span></a>
							<ul class="nav nav-second-level">
								<li>
									<a href="order.jsp"target="main">订单处理</a>
								</li>
							</ul>
						</li>
						<li>
							<a href="#" target="main"><i class="glyphicon glyphicon-user"></i>用户管理<span class="glyphicon glyphicon-chevron-left"></span></a>
							<ul class="nav nav-second-level">
								<li>
									<a href="role.jsp" target="main">角色管理</a>
								</li>
								<li>
									<a href="Users.jsp" target="main">用户管理</a>
								</li>
							</ul>
						</li>
						<li>
							<a href="#"><i class="glyphicon glyphicon-cog"></i>系统管理<span class="glyphicon glyphicon-chevron-left"></span> </a>
							<ul class="nav nav-second-level">
								<li>
									<a href="logs.jsp" target="main">系统日志</a>
								</li>
								<li>
									<a href="#">系统设置</a>
								</li>
							</ul>
						</li>
						<li>
							<a href="login.html"><i class="glyphicon glyphicon-log-out"></i>退出系统</a>
						</li>
					</ul>
				</div>
			</nav>

			<div id="page-wrapper">
				<div id="page-inner">
					<iframe id="external-frame" scrolling="no" onload="setIframeHeight(this)" name="main" width="100%" scrolling="auto" height="100%" src="workstation.html" frameborder="0"></iframe>
				</div>
			</div>
					<script type="text/javascript">
			function setIframeHeight(iframe) {
				if(iframe) {
					var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
					if(iframeWin.document.body) {
						iframe.height = iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
					}
				}
			};

			window.onload = function() {
				setIframeHeight(document.getElementById('external-frame'));
			};
		</script>
	</body>

</html>